package com.banesco.precargadepositos.interfaz.componentes;

import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.Manager;

public class RadioButtonLayout extends Manager{

	public RadioButtonLayout() {
		 super(Manager.VERTICAL_SCROLL | Manager.RIGHTMOST);
	}

	protected void sublayout(int width, int height) {
		 Field field;
	       //get total number of fields within this manager
	       int numberOfFields = getFieldCount();
	       int x = 0;
	       int y = 0;
	       for (int i = 0;i < numberOfFields;i++) {
	           field = getField(i); //get the field
	           setPositionChild(field,x,y); //set the position for the field
	           
	           layoutChild(field, width, height); //lay out the field
	           x += 30;
	       }
	       
		   width=300;
		   height=100;
		   
	       setExtent(width, height);
	}

}
